package com.atguigu.mybatisplus.mapper;

import com.atguigu.mybatisplus.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Component;

/**
* @author 12083
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2025-04-27 22:20:10
* @Entity com.atguigu.mybatisplus.entity.User
*/
@Component
public interface UserMapper extends BaseMapper<User> {

    /**
     * 自定义物理删除SQL
     */
    @Delete("delete from user where id = #{id}")
    int physicalDelete(long id);

}




